<?php

use Illuminate\Routing\Router;


Route::group([
    'prefix' => 'admin/userprofile',
    'namespace' => 'Frieza\\Modules\\Userprofile\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/', 'IndexController@index')->name('userprofile.index');
    $router->get('/create', 'IndexController@create')->name('userprofile.create');
    $router->get('/{id}/edit', 'IndexController@create')->name('userprofile.create');
    $router->post('/{id}/edit', 'IndexController@save')->name('userprofile.save');
    $router->post('/create', 'IndexController@save')->name('userprofile.save');
    $router->post('/write', 'IndexController@writeFile')->name('userprofile.write');
    $router->post('/clearCache', 'IndexController@clearCache')->name('userprofile.cache');
    $router->put('/{id}', 'IndexController@quickSave')->name('userprofile.quick_save');
    $router->post('/sort', 'IndexController@sort')->name('userprofile.sort');
//


});
